Learn R Programming

SeuratObject (version 5.0.2)

[[.Assay: Feature-Level Meta Data

Description

Get and set feature-level meta data

Usage

# S3 method for Assay
[[(x, i, ..., drop = FALSE)

# S4 method for Assay,ANY,ANY,ANY [[(x, i, j, ...) <- value

# S3 method for Assay head(x, n = 10L, ...)

# S3 method for Assay tail(x, n = 10L, ...)

# S4 method for Assay,missing,missing,data.frame [[(x, i, j, ...) <- value

Value

[[: The feature-level meta data for i

[[<-: x with value added as i

in feature-level meta data

head: The first n rows of feature-level meta data

tail: the last n rows of feature-level meta data

Arguments

x

An Assay object

i

Name of feature-level meta data to fetch or add

...

Ignored

drop

See drop

j

Ignored

value

Feature-level meta data to add

n

Number of meta data rows to show

See Also

v3 Assay object, validity, and interaction methods: $.Assay(), Assay-class, Assay-validity, CreateAssayObject(), [.Assay(), dim.Assay(), dimnames.Assay(), merge.Assay(), split.Assay(), subset.Assay()

Examples

Run this code
rna <- pbmc_small[["RNA"]]

# Pull the entire feature-level meta data data frame
head(rna[[]])

# Pull a specific column of feature-level meta data
head(rna[["vst.mean"]])
head(rna[["vst.mean", drop = TRUE]])

# `head` and `tail` can be used to quickly view feature-level meta data
head(rna)

tail(rna)

Run the code above in your browser using DataLab